const { defineConfig } = require("@vue/cli-service");
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = defineConfig({
  devServer: {
    open: true,
    port: 8089,
    proxy: {
      [process.env.VUE_APP_BASE_URL]: {
        target: "https://vue.ruoyi.vip/prod-api",
        changeOrigin: true,
        pathRewrite: {
          ["^" + process.env.VUE_APP_BASE_URL]: "",
        },
      },
    },
  },
  transpileDependencies: true,
  configureWebpack: {
    plugins: [
      // new BundleAnalyzerPlugin()
    ],
  },
});
